//api.js
import BASE from'@/Base'
//接口定义
import http from './http.js'
let url = BASE.BASE_URL;

export const apiSendSms = param => http.postRequest(`${url}baseapi/sendSms/sendSms`, param); //验证码接口
export const apiModelInfo = param => http.postRequest(`${url}baseapi/pushbase/modelInfo`, param); //基础配置接口
export const apiUploadToken = param => http.postRequest(`${url}baseapi/wechart/uploadToken`, param); //七牛云token接口
export const apiUploadMerchantPushImg = param => http.postRequest(`${url}baseapi/wechart/uploadMerchantPushImg`, param); //上传图片（暂不使用）
export const apiCreateXaBind = param => http.getRequest(`${url}baseapi/push/createXaBind`, param); //小爱淘宝授权链接生成接口
export const apiJudgeXaData = param => http.postRequest(`${url}baseapi/push/judgeXaData`, param); //小爱淘宝授权判断接口
export const apiJudgeAgainXaData = param => http.postRequest(`${url}baseapi/push/judgeAgainXaData`, param); //小爱淘宝授权判断接口
export const apiJudgeAgainNewXaData = param => http.postRequest(`${url}baseapi/push/judgeAgainNewXaData`, param); //小爱淘宝授权判断接口


export const apiGetUserInfo = param => http.getRequest(`${url}baseapi/pushBase/getUserInfo`, param); //微信授权获取用户openid

export const apiAccountCreate = param =>http.postRequest(`${url}baseapi/Verifyaccount/create`,param);// 雪狼验号API

export const apiGetXaTbName= param => http.postRequest(`${url}baseapi/push/getXaTbName`, param); //小爱淘宝拉取淘宝账号接口

//登录
export const apiPhoneLogin = param => http.postRequest(`${url}baseapi/pushBase/login`, param); //手机号登录接口
export const apiWechatLogin = param => http.postRequest(`${url}baseapi/pushBase/weChat`, param); //微信登录接口
export const apiLoginType = param => http.postRequest(`${url}baseapi/pushBase/loginType`, param); //登录类型接口

//注册
export const apiCheckTbPlatformStatus = param => http.postRequest(`${url}baseapi/pushBase/checkTbPlatformStatus`, param); //检查淘宝号绑定接口
export const apiRegister = param => http.postRequest(`${url}baseapi/pushBase/register`, param); //注册接口
export const apiGetTkl = param => http.postRequest(`${url}baseapi/pushBase/getTkl`, param); //获取淘口令接口
export const apiBindTb = param => http.postRequest(`${url}baseapi/pushBase/bindTb`, param); //绑定淘宝接口

//找回密码
export const apiFindPassword = param => http.postRequest(`${url}baseapi/pushbase/findPassword`, param); //找回密码接口

//首页
export const apiInquiryWaitOperateTask = param => http.postRequest(`${url}baseapi/push/inquiryWaitOperateTask`, param); //查询等待操作的任务的接口
export const apiBindCid = param => http.postRequest(`${url}baseapi/push/bindCid`, param); //绑定所在地的接口
export const apiGetCityInfo = param => http.postRequest(`${url}baseapi/push/getCityInfo`, param); //经纬度接口
export const apiChangeWeChat = param => http.postRequest(`${url}baseapi/pushBase/changeWeChat`, param); //更换微信、公众号接口
export const apiPushIndex = param => http.postRequest(`${url}baseapi/push/pushIndex`, param); //首页接口
export const apiCommissionCapitalCash = param => http.postRequest(`${url}baseapi/push/commissionCapitalCash`, param); //本佣金余额接口

export const apiCommissionCapitalCashAllWxAli = param => http.postRequest(`${url}baseapi/pushsubmit/commissionCapitalCashAllWxAli`, param); //本佣合并提现，本佣余额查询接口

export const apiWeChatOfficialAccount = param => http.postRequest(`${url}baseapi/push/weChatOfficialAccount`, param); //多个公众号接口
export const apiAppWeChat = param => http.postRequest(`${url}baseapi/push/appWeChat`, param); //绑定公众号接口
export const apiOpenCloseGetOrder = param => http.postRequest(`${url}baseapi/push/openCloseGetOrder`, param); //开启关闭接单接口

//资金流水、提现
export const apiGetPushCapitalFlowList = param => http.postRequest(`${url}baseapi/push/getPushCapitalFlowList`, param); //资金流水列表接口
export const apiAllPushWithdraw = param => http.postRequest(`${url}baseapi/push/allPushWithdraw`, param); //可全部提现金额接口
export const apiPushSubmitWithdraw = param => http.postRequest(`${url}baseapi/push/pushSubmitWithdraw`, param); //提现接口

export const apiPushSubmitWithdrawAllWxAli = param => http.postRequest(`${url}baseapi/pushsubmit/pushSubmitWithdrawAllWxAli`, param); //本佣合并提现接口

export const apiPushUserWithdrawList = param => http.postRequest(`${url}baseapi/push/pushUserWithdrawList`, param); //提现记录接口
export const pushSubmitWithdrawAli = param => http.postRequest(`${url}baseapi/push/pushSubmitWithdrawAli`, param); //提现接口1

export const allCommissionCapitalCash = param => http.postRequest(`${url}baseapi/push/allCommissionCapitalCash`, param); //本佣金余额接口
export const pushAllWithdraw = param => http.postRequest(`${url}baseapi/withdraw/pushAllWithdraw`, param); //提现接口3,重写提现逻辑

//任务列表
export const apiPushAssessList = param => http.postRequest(`${url}baseapi/push/pushAssessList`, param); //评价任务接口
export const apiPushTaskList = param => http.postRequest(`${url}baseapi/push/pushTaskList`, param); //销量流量任务接口

export const apiGetAppealInfo = param => http.postRequest(`${url}baseapi/push/getAppealInfo`, param); //申诉信息接口
export const apiCreatePushAppeal = param => http.postRequest(`${url}baseapi/push/createPushAppeal`, param); //创建申诉接口
export const apiExchangeCommission = param => http.postRequest(`${url}baseapi/push/exchangeCommission`, param); // 会员兑换抖音佣金
export const apiAgainAppeal = param => http.postRequest(`${url}baseapi/push/againAppeal`, param); //申诉信息接口
export const apiMerchantRebateAppealDetail = param => http.postRequest(`${url}baseapi/push/merchantRebateAppealDetail`, param); //商户端商家回复申诉接口
export const apiMerchantRebateAppeal = param => http.postRequest(`${url}baseapi/push/merchantRebateAppeal`, param); //提交商户端商家回复申诉接口

export const apiInquiryTbGoodsName = param => http.postRequest(`${url}baseapi/push/inquiryTbGoodsName`, param); //核对链接接口
export const apiSubmitFlowTask = param => http.postRequest(`${url}baseapi/push/submitFlowTask`, param); //提交流量任务接口
export const apiSubmitSaleTask = param => http.postRequest(`${url}baseapi/push/submitSaleTask`, param); //提交销量任务接口
export const apiNewSubmitSaleTask = param => http.postRequest(`${url}push/tasksubmit/submitSaleTask`, param); //提交销量任务新接口
export const apiSubmitSaleWrapOfTask = param => http.postRequest(`${url}baseapi/push/submitSaleWrapOfTask`, param); //提交销量任务包单任务接口
export const apiSubmitTiktokSalesTask = param => http.jsonRequest(`${url}onedragmore/Pushsubmit/submit`, param); //提交抖音一拖N销量任务接口

export const apiSaleFlowTaskDetail = param => http.postRequest(`${url}baseapi/push/saleFlowTaskDetail`, param); //任务详情接口
export const apiSalesTaskDragDetail = param => http.postRequest(`${url}push/Tasksubmit/saleTaskDetail`, param); //一拖N任务详情接口
export const apiGiveUpTask = param => http.postRequest(`${url}baseapi/push/giveUpTask`, param); //放弃任务接口
export const apiGetTask = param => http.postRequest(`${url}baseapi/push/getTask`, param); //获取任务信息接口

export const apiAssessTaskDetail = param => http.postRequest(`${url}baseapi/push/assessTaskDetail`, param); //获取评价任务信息接口
export const apiPushSubmitAssess = param => http.postRequest(`${url}baseapi/push/pushSubmitAssess`, param); //提交评价任务接口

//消息、公告
export const apiGetPushMessageList = param => http.postRequest(`${url}baseapi/push/getPushMessageList`, param); //获取消息列表接口
export const apiPushMessageDetail = param => http.postRequest(`${url}baseapi/push/pushMessageDetail`, param); //获取消息详情接口
export const apiNoticeDetail = param => http.postRequest(`${url}baseapi/push/noticeDetail`, param); //公告详情接口
export const apiClearUrgeReceipt = param => http.postRequest(`${url}baseapi/push/clearUrgeReceipt`, param); //推手端催收货已读状态

//个人中心

export const apiPushUser = param => http.postRequest(`${url}baseapi/push/pushUser`, param); //个人中心接口
export const apiPromotionPushUser = param => http.postRequest(`${url}baseapi/push/promotionPushUser`, param); //判断是否是师傅接口
export const apiApplyMaster = param => http.postRequest(`${url}baseapi/push/applyMaster`, param); //晋升师傅接口
export const apiTbImgCheck = param => http.postRequest(`${url}baseapi/push/tbImgCheck`, param); //淘宝账号截图检测接口

//设置
export const apiChangePushWeChat = param => http.postRequest(`${url}baseapi/push/changePushWeChat`, param); //更换微信接口
export const apiOpenCloseSmsStatus = param => http.postRequest(`${url}baseapi/push/openCloseSmsStatus`, param); //开启短信接口
export const apiChangePushPhone = param => http.postRequest(`${url}baseapi/push/changePushPhone`, param); //换绑手机接口

//信息绑定
export const apiBindPushUserInfo = param => http.postRequest(`${url}baseapi/push/bindPushUserInfo`, param); //获取绑定信息接口
export const apiBankIdCardBind = param => http.postRequest(`${url}baseapi/push/bankIdCardBind`, param); //绑定银行卡身份证接口
export const apiIdCardOrc = param => http.postRequest(`${url}baseapi/push/idCardOrc`, param); //识别身份证接口
export const apiBindWxPayCode = param => http.postRequest(`${url}baseapi/push/bindWxPayCode`, param); //收款吗接口
export const apiBindWeChatNum = param => http.postRequest(`${url}baseapi/push/bindWeChatNum`, param); //绑定微信和QQ号接口
export const apiAlipayQrCode = param => http.postRequest(`${url}baseapi/alipay/aliqrcode`, param); //获取支付宝授权绑定二维码
export const apiAlipayCode = param => http.postRequest(`${url}push/aliuserinfo/bindinfo`, param); //获取支付宝授权绑定

//账号绑定
export const apiOtherPlatformBind = param => http.postRequest(`${url}baseapi/push/otherPlatformBind`, param); //绑定京东，拼多多，唯品会，抖音账号接口
export const apiTbImgBind = param => http.postRequest(`${url}baseapi/push/tbImgBind`, param); //绑定淘宝账号接
export const apiCheckBindPlatform = param => http.postRequest(`${url}baseapi/push/checkBindPlatform`, param); //绑定平台
export const apiOpenClosePlatformStatus = param => http.postRequest(`${url}baseapi/push/openClosePlatformStatus`, param); //开启对应平台接单

//邀请码、升级码
export const apiPushUserCodeStatusList = param => http.postRequest(`${url}baseapi/push/pushUserCodeStatusList`, param); //邀请码列表接口
export const apiMasterFreeze = param => http.postRequest(`${url}baseapi/push/masterFreeze`, param); //冻结账号接
export const apiPushCreateCode = param => http.postRequest(`${url}baseapi/push/pushCreateCode`, param); //生成邀请码接口
export const apiPushUserCodeList = param => http.postRequest(`${url}baseapi/push/pushUserCodeList`, param); //历史邀请码列表
export const apiPushUserUpgradeCodeStatusList = param => http.postRequest(`${url}baseapi/push/pushUserUpgradeCodeStatusList`, param); //升级码接口
export const apiPushCreateUpgradeCode = param => http.postRequest(`${url}baseapi/push/pushCreateUpgradeCode`, param); //生成升级码接口
export const apiPushUserUpgradeCodeList = param => http.postRequest(`${url}baseapi/push/pushUserUpgradeCodeList`, param); //历史升级码接口


export const apiGoodsList = param => http.postRequest(`${url}baseapi/goods/getGoodsList`, param); // 兑奖商品列表
export const apiDecStock = param => http.postRequest(`${url}baseapi/goods/decStock`, param); // 兑奖成功后减库存

